package com.huamao.zh.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huamao.zh.model.SktSysConfigs;
import com.huamao.zh.service.ShareBonusService;

@Controller
@RequestMapping("/shareBonus")
public class ShareBonusController {

	@Autowired
	ShareBonusService shareBonusService;

	@RequestMapping("")
	public String index() {
		String ha = "HelloWord!";
		return ha;
	}

	@RequestMapping("shareBonus")
	public void shareBonus() throws Exception {
		shareBonusService.shareBonus();
	}

	@RequestMapping("selectOne")
	@ResponseBody
	public Object selectOne(SktSysConfigs ssc) {
		SktSysConfigs sktSysConfigs = shareBonusService.selectOne(ssc);
		return sktSysConfigs;
	}

	@RequestMapping("selectAll")
	@ResponseBody
	public Object selectAll() {
		List<SktSysConfigs> sktSysConfigs = shareBonusService.selectAll();
		return sktSysConfigs;
	}
}
